<?php
/**
 * Created by PhpStorm.
 * @auth:Eddy
 * @527084800@qq.com
 * Date: 18-4-11
 */

namespace app\common\task;

use app\common\lib\Sms;

class Task
{

    /**
     * 异步发送验证码
     * @param $data
     * @auth:Eddy
     *  @527084800@qq.com
     */
    public function sendSms($data)
    {

        try {
            $reponse = Sms::sendSms($data['phone'], $data['code']);

        } catch (\Exception $e) {
            //todo
            echo $e->getMessage();
        }
    }
}